sync.WaitGroup.state (field)
7 uses
sync (current package)
waitgroup.go#L28: state atomic.Uint64 // high 32 bits are counter, low 32 bits are waiter count.
waitgroup.go#L54: state := wg.state.Add(uint64(delta) << 32)
waitgroup.go#L77: if wg.state.Load() != state {
waitgroup.go#L81: wg.state.Store(0)
waitgroup.go#L98: state := wg.state.Load()
waitgroup.go#L110: if wg.state.CompareAndSwap(state, state+1) {
waitgroup.go#L119: if wg.state.Load() != 0 {
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |